package com.cpx.vo;

/**
 * @Auther: PanBin
 * @Date: 2018-8-28 14:37
 * @Description: 控制层返回json数据的封装
 * @Version: 1.0
 */
public class JsonResultVo {

	private int code = 200;
	private String errMsg;
	private Object data;
	private final static String VERSION = "1.0";

	public void setErrMsg(String errMsg) {
		data = null;
		code = 500;
		this.errMsg = errMsg;
	}

	public String getErrMsg() {
		return errMsg;
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
